//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-04A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Easton Corbin','The Shed - Smoky Mountain Harley-Davidson','Maryville, TN','Friday','5/3/2024','7:30 PM','6260523','Easton-Corbin-5-3-2024'],['Pasadena Strawberry Festival: Casey Chesnutt & Easton Corbin','Pasadena Convention Center & Municipal Fairgrounds','Pasadena, TX','Friday','5/17/2024','3:00 PM','6362444','Pasadena-Strawberry-Festival--Casey-Chesnutt---Easton-Corbin-5-17-2024'],['Easton Corbin','The Tailgate','Midland, TX','Saturday','5/18/2024','6:00 PM','6296810','Easton-Corbin-5-18-2024'],['Chris Janson & Easton Corbin','Showplace Theatre At Riverwind Casino','Norman, OK','Saturday','5/25/2024','6:00 PM','6278518','Chris-Janson---Easton-Corbin-5-25-2024'],['Lonestar, Easton Corbin & Drew Baldridge','Gem City - On the Riverfront','Quincy, IL','Sunday','5/26/2024','7:00 PM','6345813','Lonestar--Easton-Corbin---Drew-Baldridge-5-26-2024'],['Easton Corbin','The Capitol Room At Harrisburg Midtown Arts Center','Harrisburg, PA','Friday','6/7/2024','7:00 PM','6315566','Easton-Corbin-6-7-2024'],['Easton Corbin','Gold Strike Casino Resort','Robinsonville, MS','Friday','6/14/2024','8:00 PM','6296358','Easton-Corbin-6-14-2024'],['Easton Corbin','The Camp At Lake Wappapello','Wappapello, MO','Saturday','6/15/2024','8:30 PM','6327196','Easton-Corbin-6-15-2024'],['Easton Corbin','Sonoma-Marin Fairgrounds & Event Center','Petaluma, CA','Saturday','6/22/2024','8:00 PM','6404438','Easton-Corbin-6-22-2024'],['ND Country Fest: Dierks Bentley, Riley Green, Michael Ray & Clint Black - 4 Day Pass','Morton County Fairgrounds','New Salem, ND','Wednesday','7/10/2024','TBD','5879436','ND-Country-Fest--Dierks-Bentley--Riley-Green--Michael-Ray---Clint-Black---4-Day-Pass-7-10-2024']],'"easton corbin"','https://www.ticketnetwork.com');